home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntunzip2.zip / MAKEFILE < prev    next >
Text File  |  1994-01-25  |  2KB  |  81 lines

  1. # NMAKE Makefile for Windows NT
  2. # D. Feinleib 7/92 t-davefe@microsoft.com
  3. # H. Gessau 9/93 <henryg@kullmar.kullmar.se>
  4. #
  5. # Last revised: 25 Jan 1994.
  6. # Tested with NT SDK. Not tested with VC++ for NT.
  7.  
  8. # Nmake macros for building Windows NT applications
  9. # To build with debug info use 'nmake debug=1'
  10. !IFNDEF debug
  11. NODEBUG=1
  12. !ENDIF
  13. !include <ntwin32.mak>
  14.  
  15. # object files
  16. OBJS1 = unzip.obj crypt.obj envargs.obj explode.obj extract.obj file_io.obj
  17. OBJS2 = inflate.obj match.obj unreduce.obj unshrink.obj zipinfo.obj
  18. OBJS  = $(OBJS1) $(OBJS2) nt.obj
  19. OBJF  = funzip.obj crypt_.obj inflate_.obj
  20.  
  21. # cvars = $(cvars) -nologo -DMSDOS -DNO_ASM -J
  22. cvars = $(cvars) -nologo -DNO_ASM -J
  23.  
  24. # Some optimization (if not debugging)
  25. !IFDEF NODEBUG
  26. cdebug = -Ogityb2
  27. !ENDIF
  28.  
  29. # How to compile sources
  30. .c.obj:
  31.     $(cc) $(cdebug) $(cflags) $(cvars) $<
  32.  
  33. # How to link
  34. .obj.exe:
  35.     $(link) $(ldebug) $(conflags) $(conlibs) $** -out:$@
  36.  
  37.  
  38. # Default target is all the executables
  39. unzips : unzip.exe funzip.exe    # zipinfo.exe ?
  40.  
  41.  
  42. crypt.obj:    crypt.c unzip.h zip.h crypt.h
  43. envargs.obj:    envargs.c unzip.h
  44. explode.obj:    explode.c unzip.h
  45. extract.obj:    extract.c unzip.h crypt.h
  46. file_io.obj:    file_io.c unzip.h crypt.h tables.h
  47. funzip.obj:    funzip.c unzip.h crypt.h tables.h
  48. inflate.obj:    inflate.c inflate.h unzip.h
  49. match.obj:    match.c unzip.h
  50. unreduce.obj:    unreduce.c unzip.h
  51. unshrink.obj:    unshrink.c unzip.h
  52. unzip.obj:    unzip.c unzip.h
  53. zipinfo.obj:    zipinfo.c unzip.h
  54.  
  55. nt.obj:     nt\nt.c unzip.h                    # NT only
  56.     $(cc) $(cdebug) $(cflags) $(cvars) -I. nt\nt.c
  57.     
  58. crypt_.obj:    crypt_.c                    # funzip only
  59.     $(cc) $(cdebug) $(cflags) $(cvars) -DFUNZIP crypt_.c
  60.     del crypt_.c
  61.  
  62. inflate_.obj:    inflate_.c                    # funzip only
  63.     $(cc) $(cdebug) $(cflags) $(cvars) -DFUNZIP inflate_.c
  64.     del inflate_.c
  65.  
  66. crypt_.c:    crypt.c unzip.h zip.h crypt.h
  67.     copy crypt.c crypt_.c
  68.  
  69. inflate_.c:    inflate.c inflate.h unzip.h crypt.h
  70.     copy inflate.c inflate_.c
  71.  
  72.  
  73. unzip.exe:    $(OBJS)
  74.  
  75. funzip.exe:    $(OBJF)
  76.  
  77. zipinfo.exe:    $(OBJI)
  78.  
  79. clean:
  80.     del /q $(OBJS) unzip.exe $(OBJF) funzip.exe
  81.